package com.hqd.ch03.v7.config;

import java.util.HashMap;
import java.util.Map;


public class MutablePropertyValues {
    private Map<String, String> map = new HashMap<>();

    public Map<String, String> getProperties() {
        return map;
    }

    public void addProperty(String name, String value) {
        map.put(name, value);
    }

    public String getValue(String name) {
        return map.get(name);
    }

    public void addPropertyValues(Map<String, String> map) {
        map.forEach((key, val) -> this.map.put(key, val));
    }
}
